package com.ziven.learn.main;

import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.ziven.easygo.ui.AbstractEasyAdapter;
import com.ziven.learn.R;
import com.ziven.processor.LearnBaseBean;

class MainAdapter extends AbstractEasyAdapter<LearnBaseBean, MainHolder> {

    public MainAdapter() {
        setListener(false, (data, position) -> data.learn.learn());
    }

    @NonNull
    @Override
    public MainHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new MainHolder(parent, R.layout.my_item_view);
    }
}
